﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11_Console
{
    internal class Student
    {
        public Student(string name,int money)
        {
            this.Name = name;
            this.Money = money;
        }
        // 静态属性
        public static string SchoolName { get; set; }

        public string Name { get; set; }
        public int Money { get; set; }
        // 实例方法（属于this）
        public void Eat()
        {
            Console.WriteLine(this.Name);
            Console.WriteLine(this.Money);
            Study();
        }
        // 静态方法(属于类),只能访问静态成员变量和静态方法
        public static void Study()
        {

        }
    }
}
